package com.xyf.sys.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("购物车")
public class SysCart {

    private Long id;

    private String code;

    private String userId;

    private String regimentId;

    private Long deptId;

    @ApiModelProperty("数量")
    private Integer num;

    @ApiModelProperty("总价")
    private BigDecimal totalPrice;

    @ApiModelProperty("0 默认 1 分享")
    private Integer type;

    @ApiModelProperty("")
    private Long shareCartId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timestamp;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastUpdateTime;

    /**
     * 状态0 默认 1 已分享 2 已下单
     */
    private String status;

    private String delFlag;

    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private String remark;

    private List<SysCartItem> itemList;

    @ApiModelProperty("分享人")
    private String shareName;

    @ApiModelProperty("分享人手机号")
    private String shareMobile;
}